package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    /**
     * 获取购物车
     * @param shoppingCart
     * @return
     */
    List<ShoppingCart> getBy(ShoppingCart shoppingCart);

    /**
     * 更新购物车
     * @param cartGet
     */
    void update(ShoppingCart cartGet);

    /**
     * 新增购物车
     * @param shoppingCart
     */
    void add(ShoppingCart shoppingCart);

    /**
     * 删除购物车
     * @param shoppingCart
     */
    void delete(ShoppingCart shoppingCart);
}
